<template>
	<view>
		<view>
			<navigator url="../home/home?id=80&age=18">跳转到home页</navigator>
		</view>
		<view>
			<navigator open-type="redirect" url="../home/home">跳转到home页</navigator>
		</view>
		<view>
			<navigator open-type="switchTab" url="../index/index">跳转到index页</navigator>
		</view>
		<view>
			<button @click="gotopage">跳转到home页</button>
		</view>
		<view>
			<button @click="gototab">跳转到index页</button>
		</view>
		<view>
			<button @click="redirectPage">跳转到index页</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onUnload() {
			console.log("页面卸载了...")
		},
		methods: {
			gotopage(){
				uni.navigateTo({
					url:"../home/home?id=100"
				})
			}
			,
			gototab(){
				uni.switchTab({
					url:"../index/index"
				})
			},
			redirectPage(){
				uni.redirectTo({
					url:"../pulldown/pulldown"
				})
			}
			
		}
	}
</script>

<style>

</style>
